package game.network
{
	import engine.asset.*;
	import engine.core.*;
	import game.actor.*;
	import game.messages.gamedata.*;
	import game.messages.inventory.*;
	
	public class RxItemRecord
	{
		private var m_desc:RxInventory_ItemDescription;
		private var m_dirty:Boolean = false;
		public static var s_itemAttributeData:RxAssetCSV = RxAssetCSV.GetByName("itemattributes");
		
		public function RxItemRecord()
		{
			this.m_desc = new RxInventory_ItemDescription();
		}
		
		public static function GetFromNetId(param1:uint, bol:Boolean = true) : RxItemRecord
		{
			var obj:Object = null;
			var record:RxItemRecord = null;
			if (param1 != 0)
			{
				obj = RxNetIDManager.instance.Get(param1);
				if (obj != null)
				{
					record = obj as RxItemRecord;
				}
				else if (bol)
				{
					record = new RxItemRecord;
					RxNetIDManager.instance.Set(param1, record);
				}
			}
			
			return record;
		}
		
		public function GetBaseDefinition() : String
		{
			return this.m_desc.summaryInfo.fullName;
		}
	}
}